//
//  SN_IAPTool.h
//  Shiyun_Newspaper
//
//  Created by Sylar on 2017/7/3.
//  Copyright © 2017年 ShiYun. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <StoreKit/StoreKit.h>

@protocol IAPToolDelegate <NSObject>

-(void)orderResult:(NSInteger)recode;

@end

@interface SN_IAPTool : NSObject<SKPaymentTransactionObserver,SKProductsRequestDelegate,UIAlertViewDelegate>

+(instancetype)ShareTool;

- (void)getProduct:(NSString *)productId order:(NSString *)orderId delegate:(id)target;

@property (nonatomic, copy) NSString *receipt;
@property (nonatomic, copy) NSString *orderId;

@property(nonatomic, weak)id<IAPToolDelegate>delegate;


@end
